$(window).load(function() {
  if(document.getElementById("flexslider")){
	  $('.flexslider').flexslider({
		animation: "slide"
	  });
  }
  if(!document.getElementById("photoSwipe")){
     setTimeout(function(){ window.scrollTo(0, 1); }, 100);
  }
});

$(function (){
 $('#search-btn').bind('click',function (e){
	$('#category-area').hide();
    $('#search-area').slideToggle('fast');
	e.preventDefault();
 });
 $('#sub-menu-btn').bind('click',function (e){
	$('#search-area').hide();
    $('#category-area').slideToggle('normal');
	e.preventDefault();
 });
 $('#category-area dt').bind('click',function (){
    $(this).next().slideToggle('fast');
	$(this).toggleClass('active');
 })
})